package com.cy.container;

import java.util.Objects;

/**
 * @Author ChenYan
 * @Date 2021/8/13 15:40
 * @Description
 */
public class Host {

    private String name;

    private String appBase;

    public Host(String name, String appBase) {
        this.name = name;
        this.appBase = appBase;
    }

    /**
     * Gets the value of name. *
     *
     * @return the value of name
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the name. *
     * <p>You can use getName() to get the value of name</p>
     * * @param name name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Gets the value of appBase. *
     *
     * @return the value of appBase
     */
    public String getAppBase() {
        return appBase;
    }

    /**
     * Sets the appBase. *
     * <p>You can use getAppBase() to get the value of appBase</p>
     * * @param appBase appBase
     */
    public void setAppBase(String appBase) {
        this.appBase = appBase;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Host host = (Host) o;
        return Objects.equals(name, host.name) && Objects.equals(appBase, host.appBase);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, appBase);
    }
}
